 * {
            box-sizing: border-box;
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        }
        body {
            background: #eef2f6;
            display: flex;
            justify-content: center;
            padding: 1.5rem;
            min-height: 100vh;
        }
        .app-container {
            max-width: 1600px;
            width: 100%;
            background: white;
            border-radius: 2rem;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .header {
            background: #ffffffea;
            backdrop-filter: blur(8px);
            padding: 1.2rem 2rem;
            border-bottom: 1px solid #e9eef2;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        .logo small {
            font-size: 0.8rem;
            background: #eef5ff;
            color: #1e4a8b;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            margin-left: 1rem;
            font-weight: 500;
        }
        .badge {
            background: #dcfce7;
            color: #166534;
            font-size: 0.75rem;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
        }
        .main-grid {
            display: grid;
            grid-template-columns: 250px 1fr 300px;
            gap: 1.2rem;
            padding: 1.8rem;
            background: #f9fbfd;
            flex: 1;
        }
        /* left panel – add questions */
        .add-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .add-panel h3 {
            font-size: 1rem;
            text-transform: uppercase;
            color: #64748b;
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .question-type-btn {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 40px;
            padding: 0.8rem 1rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: 0.1s;
        }
        .question-type-btn:hover {
            background: #e6edf8;
            border-color: #a0bbda;
        }
        /* center panel – preview */
        .preview-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .preview-header h3 {
            color: #64748b;
            font-size: 1rem;
            text-transform: uppercase;
        }
        #questionCount {
            background: #e6edf8;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #1b4a8b;
        }
        .survey-question {
            background: #ffffff;
            border: 1px solid #edf2f7;
            border-radius: 20px;
            padding: 1.2rem;
            margin-bottom: 1rem;
            position: relative;
            transition: 0.15s;
            cursor: pointer;
        }
        .survey-question.selected {
            border: 2px solid #1b4a8b;
            background: #f5faff;
        }
        .question-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .question-label {
            font-weight: 600;
            font-size: 1rem;
        }
        .required-badge {
            background: #fee2e2;
            color: #b91c1c;
            font-size: 0.7rem;
            padding: 0.2rem 0.6rem;
            border-radius: 40px;
        }
        .question-actions {
            display: flex;
            gap: 0.3rem;
        }
        .question-actions button {
            background: none;
            border: none;
            color: #64748b;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .question-actions button:hover {
            color: #1b4a8b;
        }
        .question-preview {
            margin-top: 0.5rem;
            color: #334155;
            font-size: 0.9rem;
        }
        .options-preview {
            margin-top: 0.3rem;
            font-size: 0.85rem;
            color: #64748b;
        }
        /* right panel – properties */
        .properties-panel {
            background: white;
            border-radius: 1.5rem;
            padding: 1.5rem;
            box-shadow: 0 8px 20px -8px rgba(0,0,0,0.08);
            border: 1px solid #eef2f6;
            overflow-y: auto;
            max-height: 70vh;
        }
        .properties-panel h3 {
            font-size: 1rem;
            color: #64748b;
            margin-bottom: 1.5rem;
        }
        .prop-group {
            margin-bottom: 1.2rem;
        }
        .prop-group label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            display: block;
            margin-bottom: 0.3rem;
        }
        .prop-group input, .prop-group select, .prop-group textarea {
            width: 100%;
            padding: 0.6rem 0.8rem;
            border: 1px solid #cbd5e1;
            border-radius: 14px;
            font-size: 0.9rem;
        }
        .prop-group.checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .prop-group.checkbox input {
            width: auto;
        }
        .options-editor {
            margin-top: 0.5rem;
        }
        .option-row {
            display: flex;
            gap: 0.3rem;
            margin-bottom: 0.3rem;
        }
        .option-row input {
            flex: 1;
        }
        .option-row button {
            background: #fee2e2;
            border: none;
            color: #b91c1c;
            width: 30px;
            border-radius: 30px;
            cursor: pointer;
        }
        .add-option-btn {
            background: #f1f5f9;
            border: 1px dashed #94a3b8;
            border-radius: 40px;
            padding: 0.4rem;
            width: 100%;
            cursor: pointer;
            margin-top: 0.3rem;
        }
        .download-section {
            margin-top: 2rem;
            border-top: 2px solid #eef2f6;
            padding-top: 1.5rem;
        }
        .btn {
            background: white;
            border: 1px solid #cbd5e1;
            padding: 0.7rem 1.2rem;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            color: #1e293b;
            cursor: pointer;
            transition: 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            justify-content: center;
            margin-bottom: 0.5rem;
        }
        .btn-primary {
            background: #1b4a8b;
            border-color: #0f2b4f;
            color: white;
        }
        .btn-primary:hover {
            background: #0f3a6b;
        }
        .btn:hover {
            background: #f1f5f9;
            transform: translateY(-2px);
        }
        footer {
            padding: 0.8rem 2rem;
            border-top: 1px solid #e9eef2;
            color: #6b7a8f;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            background: white;
        }
        .file-error {
            color: #b91c1c;
            font-size: 0.8rem;
        }